/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_dmap_designtreeCriteria extends AbstractORMCriteria {
    public final IntegerExpression id;

    public T_dmap_designtreeCriteria(Criteria criteria) {
	super(criteria);
	id = new IntegerExpression("id", this);
    }

    public T_dmap_designtreeCriteria(PersistentSession session) {
	this(session.createCriteria(T_dmap_designtree.class));
    }

    public T_dmap_designtreeCriteria() throws PersistentException {
	this(org.testis.orm.manager.TestisDbPersistentManager.instance()
		.getSession());
    }

    public T_dmap_designtreeCriteria createParentCriteria() {
	return new T_dmap_designtreeCriteria(createCriteria("Parent"));
    }

    public T_dmap_objectsCriteria createObjectCriteria() {
	return new T_dmap_objectsCriteria(createCriteria("Object"));
    }

    public T_dmap_designtreeCriteria createCloneCriteria() {
	return new T_dmap_designtreeCriteria(createCriteria("Clone"));
    }

    public T_bed_firmwareCriteria createFirmwareCriteria() {
	return new T_bed_firmwareCriteria(createCriteria("Firmware"));
    }

    public T_dmap_designtreeCriteria createPreviousNodeCriteria() {
	return new T_dmap_designtreeCriteria(createCriteria("PreviousNode"));
    }

    public T_bed_firmwareCriteria createT_bed_firmwareCriteria() {
	return new T_bed_firmwareCriteria(createCriteria("ORM_T_bed_firmware"));
    }

    public T_dmap_designtreeCriteria createT_dmap_designtreeCriteria() {
	return new T_dmap_designtreeCriteria(
		createCriteria("ORM_T_dmap_designtree"));
    }

    public T_dmap_designtreeCriteria createT_dmap_designtree1Criteria() {
	return new T_dmap_designtreeCriteria(
		createCriteria("ORM_T_dmap_designtree1"));
    }

    public T_dmap_designtreeCriteria createT_dmap_designtree2Criteria() {
	return new T_dmap_designtreeCriteria(
		createCriteria("ORM_T_dmap_designtree2"));
    }

    public T_dmap_designtree uniqueT_dmap_designtree() {
	return (T_dmap_designtree) super.uniqueResult();
    }

    public T_dmap_designtree[] listT_dmap_designtree() {
	java.util.List list = super.list();
	return (T_dmap_designtree[]) list.toArray(new T_dmap_designtree[list
		.size()]);
    }
}
